module.exports = {
  configureWebpack: {
    module: {
      rules: [
        {
          test: /\.vue$/,
          use: [
            {
              loader: "iview-loader",
              options: {
                prefix: true
              }
            }
          ]
        }
      ]
    }
  },
  devServer: {
    proxy: {
      "/api": {
        target: "https://wgworkshop.cn",
        changeOrigin: true,
        pathRewrite: {
          "^/api": ""
        },
        ws: false
      }
    }
  }
};
